package com.cq.hd.member.api;

import com.cq.hd.common.pagination.Page;
import com.cq.hd.common.response.Result;
import com.cq.hd.member.api.dto.*;
import com.cq.hd.member.api.vo.AgentUnBindApplyPageVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "hd-o2o-member-service", contextId = "agent-un-bind-apply-api")
public interface TbAgentUnBindApplyApi {
    // 经纪人解绑申请
    @PostMapping("/member/agentUnBindApply/apply")
    Result<Boolean> apply(@RequestBody AgentUnBindApplyDto agentUnBindApplyDto);

    // 待审核经纪人数量
    @PostMapping("/member/agentUnBindApply/waitAuditCount")
    Result<Integer> waitAuditCount(@RequestParam("inviterUserId") Long inviterUserId);

    // 入驻申请列表
    @PostMapping("/member/agentUnBindApply/page")
    Result<Page<AgentUnBindApplyPageVo>> page(@RequestBody AgentUnBindApplyPageDto agentUnBindApplyPageDto);

    // 审核经纪人绑定申请
    @PostMapping("/member/agentUnBindApply/audit")
    Result<Boolean> audit(@RequestBody AgentUnBindApplyAuditDto agentUnBindApplyAuditDto);
}
